﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace news.admin.cyt369.com.Areas.NewsAdmin.Controllers
{
    [Area(news.admin.cyt369.com.Areas.NewsAdmin.Models.PlugName.Name)]
    public partial class ArticlesController : Admin.CYT369.Com.WebBase.AuthorizeController
    {
        #region 待审核文章
        public IActionResult NotAudit()
        {
            return View();
        }

        public IActionResult _AuditArticleDlg(long id)
        {
            //是否审核通过: 0-未提交审核，1-通过审核，2-未通过审核, 10-提交审核
            var article = news.admin.cyt369.com.services.Services.ArticlesService.Instance.GetArticleById(id, 10);

            return View(article);
        }

        public IActionResult _AuditArticleDlgRemark()
        {
            return View();
        }

        public IActionResult _ViewArticleDlg(long id)
        {
            //是否审核通过: 0-未提交审核，1-通过审核，2-未通过审核, 10-提交审核
            var article = news.admin.cyt369.com.services.Services.ArticlesService.Instance.GetArticleById(id);

            return View(article);
        }

        public IActionResult _AuditLogDlg(long id)
        {
            ViewBag.DocID = id;
            return View();
        }
        #endregion

        #region 审核已通过
        /// <summary>
        /// 审核已通过
        /// </summary>
        /// <returns></returns>
        public IActionResult AuditPassed()
        {
            return View();
        }
        #endregion

        #region 审核未通过
        /// <summary>
        /// 审核未通过
        /// </summary>
        /// <returns></returns>
        public IActionResult AuditFailed()
        {
            return View();
        }
        #endregion

        #region 被删除
        /// <summary>
        /// 被删除到回收站的
        /// </summary>
        /// <returns></returns>
        public IActionResult RecycleBin()
        {
            return View();
        }
        #endregion

    }
}